<?php

class DirectoryClass
{
	private function init()
	{
		$this->model = Model::factory('directory');
	}

	public function validateItem($item)
	{
		$this->init();
		if (($original = $this->model->getItem($item['id'], $item['section']))) {
			$item = array(
				'id'		=> $item['id'],
				'section'	=> $item['section'],
				'price' 	=> $original['price'],
				'name'		=> $original['name'],
			);
			return $item;
		}
		return false;
	}

	public function setPaid($item)
	{
		return true;
	}

	public function moveFile($file, $type, $sizes)
	{
	}
}
?>